package com.shijianchen.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shijianchen.projo.SpMenu;
import com.shijianchen.projo.vos.UserRoute;
import com.shijianchen.utils.TreeElement;

import java.util.ArrayList;
import java.util.List;

public interface SpMenuService extends IService<SpMenu> {
    Integer updateMenu(SpMenu spMenu);

    Boolean updateBatchMenu(ArrayList<SpMenu> spMenuArrayList);

    List<TreeElement<UserRoute>> getUserRoutes() throws IllegalAccessException;

    List<TreeElement<SpMenu>> getMenuList() throws IllegalAccessException;

    Integer addOrUpdateMenu(SpMenu spMenu,String type);
}
